<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>userdic</title>
<#include "/common/lib/layui-lib.html"/>
</head>
<body>
	<form class="layui-form" action="javascript:;">
		<fieldset class="layui-elem-field" style="padding: 5px;">
			<legend>查询</legend>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">用户词</label>
					<div class="layui-input-inline">
						<input type="text" id="name" name="name" class="layui-input">
					</div>
					<label class="layui-form-label">用户词类型</label>
					<!-- <div class="layui-input-inline">
						<input type="text" id="type" name="type" class="layui-input">
					</div> -->
					<div class="layui-input-inline">
						<select id="type" name="type" lay-verify="required" lay-search>
						</select>
					</div>
				</div>
				<button id="searchButton" class="layui-btn layui-search-button layui-btn-normal"
					data-type="reload" lay-filter="searchbtn">查询</button>
			</div>
		</fieldset>
	</form>
	<div class="layui-btn-group" style="margin-left: 5px;">
		<button id="addUser" class="layui-btn layui-btn-normal">新增</button>
		<button id="refresh" class="layui-btn layui-btn-normal">刷新</button>
	</div>
	<table id="user-table"></table>
	<script type="text/html" id="optbar">
  		<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
	</script>
	<script id="formftl" type="text/html">
		<form id="myform" class="layui-form layui-form-border" action="">
			<!--隐藏表单字段区-->
			<input type="hidden" id="optname" name="optname">
			<input type="hidden" id="win-dicId" name="dicId">
			<!--显示表单字段区-->
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">用户词</label>
					<div class="layui-input-block">
						<input type="text" id="win-name" name="name" lay-verify="required" autocomplete="off" placeholder="请输入用户词" class="layui-input">
					</div>
				</div>

				<div class="layui-inline">
					<label class="layui-form-label">词性</label>
					<div class="layui-input-block">
						<input type="text" id="win-nature" name="nature" lay-verify="required" autocomplete="off" placeholder="请输入词性" class="layui-input">
					</div>
				</div>
			</div>

			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">词频</label>
					<div class="layui-input-block">
						<input type="text" id="win-freq" name="freq" lay-verify="required" autocomplete="off" placeholder="请输入词频" class="layui-input">
					</div>
				</div>

				<div class="layui-inline">
					<label class="layui-form-label">用户词类型</label>
					<div class="layui-input-block">
						<input type="text" id="win-type" name="type" lay-verify="required" autocomplete="off" placeholder="请输入用户词类型" class="layui-input">
					</div>
				</div>
			</div>

			<button id="mybutton" lay-submit lay-filter="mybutton"/>
		</form>
    </script>
	<script src="/js/app/system/userdic/table.js" type="text/javascript"></script>
</body>
</html>